import Layout from '@/pages/public/layout' // 公共部分

const user = [{
  path: '/user/account',
  component: Layout,
  children: [{
    path: '',
    component: () => import('@/pages/user/admin/account/index.vue'),
    meta: {
      title: '用户列表',
      permission: 'user.admin.list'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/user/admin/account/create.vue'),
    meta: {
      title: '新建用户',
      permission: 'user.admin.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/user/admin/account/edit.vue'),
    meta: {
      title: '编辑用户',
      permission: 'user.admin.edit'
    }
  }, {
    path: 'adminer',
    component: () => import('@/pages/user/admin/account/adminer.vue'),
    meta: {
      title: '管理员信息'
    }
  }]
}]

export default user
